package com.作业.Day3;

import java.util.Arrays;
import java.util.Scanner;

public class Homework9 {
    public static void main(String[] args) {
        int []a=new int[4];
        System.out.println("请输入四家店的价格");
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i <a.length ; i++) {
            System.out.print("第"+(i+1)+"家店的价格");
            int i1 = scanner.nextInt();
            a[i]=i1;
        }
        Arrays.sort(a);
        System.out.println("最低价格"+a[0]);
    }
}
